/* ===========================================================
			Resonance
	NPC Name: 		Lirin
	Map(s): 		Snow Island: Rien (140000000)
	Description: 	Quest - Basic Training 1
=============================================================
Version 1.0 - Script Done.(11/6/2010)
=============================================================
*/

var status = -1;

function start(mode, type, selection) {
    status++;
	if (mode != 1) {
	    if(type == 1 && mode == 0)
		    status -= 2;
		else{
			qm.sendNext("Hey, I thought you were a hero. Let's act up fast now. It's always better to take the medicine first. Come on, let's do this!");
			qm.dispose();
			return;
		}
	}
	if (status == 0)
		qm.sendNext("Okay, enough explaining. Let's move on to the next stage. What's the next stage, you ask? I just told you. Train as hard as you can until you reach that stage where you can defeat the Black Wizard with a single blow.");
	if (status == 1)
		qm.sendNextPrev("You may have been a hero in the past, but we're talking about a few hundred years ago. Even without the curse of the Black Wizard, you just spent hundreds of years frozen in time, so it's only true that your body is rigid to say the least. Let's get your body warmed up first. How so, you ask?");
	if (status == 2)
		qm.sendAcceptDecline("Everything has to do with fundamentals, and you know it. Yes, I'm going to put you through #bBasic Training#k. Oh yeah, you also lost all of your memories, so you might not be aware of it. Well, that's okay. You'll just have to experience it firsthand. Are you ready to take on the first set of training?");
	if (status == 3){
		qm.forceStartQuest();
		qm.sendNext("This island is full of penguins, but you will encounter some monsters from time to time. When you head over to the right side of town called #b#m140020000##k, you'll see a number of #o0100131#s. I want you to defeat #r10 #o0100131#s#k. I'm sure you'll have no trouble defeating the #o0100131#s that get attacked by these slow penguins.");
	} if (status == 4){
		qm.showWZEffect("Effect/OnUserEff.img/guideEffect/aranTutorial/tutorialArrow3", 1);
		qm.dispose();
	}
}

function end(mode, type, selection) {
    status++;
	if (mode != 1) {
	    if(type == 1 && mode == 0)
		    status -= 2;
		else{
		    qm.dispose();
			return;
		}
	}
	if(status == 0)
		qm.sendOk("Were you able to defeat the Murupas? I mean, those monsters are the easiest ones you can find here, so easy that you can swing around blindfolded and still defeat them. A hero that's slower that a penguin? That's embarassing... \r\n\r\n#fUI/UIWindow.img/QuestIcon/4/0# \r\n#i2000022# #t2000022# 15 \r\n#i2000023# #t2000023# 15 \r\n\r\n#fUI/UIWindow.img/QuestIcon/8/0# 320 exp");
	if(status == 1){
		qm.forceCompleteQuest();
		qm.gainItem(2000022, 15);
		qm.gainItem(2000023, 15);
		qm.gainExp(320);
		qm.sendOk("That was a bit better than the penguins, but still not enough to take on a real training. Let's quickly move on to the next level. Talk to me when you're ready.");
		qm.dispose();
	}
}
	